//
//  Helpers.h
//  insyte
//
//  Created by Vu Dang Tuan on 6/18/15.
//  Copyright (c) 2015 Robert. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "KeychainItemWrapper.h"
#import "User.h"

@interface Helpers : NSObject

+ (void) StyleViewWithBorderColor:(UIView *)view  color:(UIColor *)color corner:(float)corner;
+ (void) StyleButtonWithBorderColor: (UIButton *)btn color:(UIColor *)color corner:(float)corner;
+ (void) scrollView:(UIView *)view y:(float)y;

+ (BOOL) validateEmail: (NSString *) candidate;
+ (BOOL) isAllTextFieldNotEmpty:(NSMutableArray *)allTextfields;
+ (void)showAnnouncementDialog:(NSString *)message;
+ (void) showConfirmationDialog: (NSString *)message dlg: (id)dlg type:(NSInteger)dialogType;
+ (KeychainItemWrapper*)getLoginKeychainWrapper;
+ (void)resetKeychain;
+ (void) saveLoginInformationToKeychain:(NSString*)id password:(NSString*)token;
+ (NSMutableArray*) getLoginInformationObjectFromKeychain;
+ (User *) parseUserObject:(NSDictionary*)dict;
@end
